import React from 'react';
import {ButtonComp, PhotoSwiper, GlobalProvider} from 'jh-lib';
export default class Test extends React.Component{
    state={
        visible:false
    }
    render(){
        const photoList = [
            {name:'图片1',src:''},
            {name:'图片2',src:''},
            {name:'图片3',src:''},
        ]
        return (
            <>
                <ButtonComp onClick={()=>{
                    this.setState({visible:true})
                }}>显示图片</ButtonComp>
                <PhotoSwiper
                    visible={this.state.visible}
                    photoList={photoList}
                    onClose={()=>{
                        this.setState({visible:false})
                    }}
                />
            </>)
    }
}
